//
//  FWEssenceController.m
//  BirdLoveSheep
//
//  Created by wwj on 16/3/8.
//  Copyright © 2016年 wwj. All rights reserved.
//

#import "FWEssenceController.h"
#import "UIBarButtonItem+Extension.h"
#import "FWEssenceTypeController.h"
#import "FWTopicModel.h"

@interface FWEssenceController ()


@end

@implementation FWEssenceController

- (void)viewDidLoad{
    [super viewDidLoad];
    self.view.backgroundColor = kBgColor;
    self.navigationItem.titleView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"MainTitle"]];
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem fw_itemWithIcon:@"MainTagSubIcon" highIcon:@"MainTagSubIconClick" target:self action:@selector(onClickLeftBtn)];
    
    [self addChildVC];
    
}

- (void)addChildVC{
    FWEssenceTypeController *recommVC = [[FWEssenceTypeController alloc] init];
    recommVC.title = @"推荐";
    recommVC.essenceType = EssenceTypeAll;
    [self addChildViewController:recommVC];
    
    FWEssenceTypeController *moveVC = [[FWEssenceTypeController alloc] init];
    moveVC.title = @"视频";
    moveVC.essenceType = EssenceTypeVideo;
    [self addChildViewController:moveVC];
    
    FWEssenceTypeController *voiceVC = [[FWEssenceTypeController alloc] init];
    voiceVC.title = @"声音";
    voiceVC.essenceType = EssenceTypeVoice;
    [self addChildViewController:voiceVC];
    
    FWEssenceTypeController *imageVC = [[FWEssenceTypeController alloc] init];
    imageVC.title = @"图片";
    imageVC.essenceType = EssenceTypePicture;
    [self addChildViewController:imageVC];
    
    FWEssenceTypeController *crossVC = [[FWEssenceTypeController alloc] init];
    crossVC.title = @"段子";
    crossVC.essenceType = EssenceTypeWord;
    [self addChildViewController:crossVC];
    
    FWEssenceTypeController *butfVC = [[FWEssenceTypeController alloc] init];
    butfVC.title = @"美女";
    butfVC.essenceType = EssenceTypeVideo;
    [self addChildViewController:butfVC];
    
    FWEssenceTypeController *gameVC = [[FWEssenceTypeController alloc] init];
    gameVC.title = @"游戏";
    gameVC.essenceType = EssenceTypeVideo;
    [self addChildViewController:gameVC];
    
    FWEssenceTypeController *searVC = [[FWEssenceTypeController alloc] init];
    searVC.title = @"社会";
    searVC.essenceType = EssenceTypeWord;
    [self addChildViewController:searVC];

}

- (void)onClickLeftBtn{
    MyLog(@"%s", __func__);
}
@end
